<?php
class Consultation
{
    private $tableName = 'consultation';
    private $db;
    
    public function __construct()
    {
        $this->db = new Mysql();
    }
    
    public function create($datas)
    {
        return $this->db->InsertRow($this->tableName, $datas);
    }
    
    public function update($datas, $whereArray)
    {
        return $this->db->UpdateRows($this->tableName, $datas, $whereArray);
        
    }
    
    public function delete($whereArray)
    {
        return $this->db->DeleteRows($this->tableName, $whereArray);
    }
    
    public function __destruct()
    {
        // close de la db ??
    }
    
    
}